﻿@model WI.CandidateManager.Common.Data.Entities.Coursework

@{
    ViewBag.Title = @Resources.Common.CommonCourseworkDetail;
}

<h2>@Resources.Common.CommonCourseworkDetail</h2>

<table class="bordered">
    <tr>
        <td class="vertical-header">@Html.DisplayNameFor(model => model.Name)</td>
        <td>@Html.DisplayFor(model => model.Name, new { @class = "" })</td>
    </tr>
    <tr>
        <td class="vertical-header">@Html.DisplayNameFor(model => model.Description)</td>
        <td><pre>@Html.DisplayFor(model => model.Description, new { @class = "" })</pre></td>
    </tr>
    <tr>
        <td class="vertical-header">Attachments</td>
       <td>@Html.ActionLink("Attachments (" + Model.Attachment.Count + ")", "List", "Attachment", new { area = "", entityID = Model.Id, returnUrl = this.Request.RawUrl }, new { @class = "common-btn BlueColor" })</td>
    </tr>
    <tr>
        <td class="vertical-header">@Html.DisplayNameFor(model => model.State)</td>
        <td>@Html.DisplayFor(model => model.State, new { @class = "" })</td>
    </tr>
    <tr>
        <td class="vertical-header">@Html.DisplayNameFor(model => model.Owner.ShortName)</td>
        <td>@Html.DisplayFor(model => model.Owner.ShortName, new { @class = "" })</td>
    </tr>
</table>

<p>
    @Html.ActionLink(@Resources.Common.CommonButtonBack, "List", "Courseworks", new { @class = "common-btn-large BlueColor" })
</p>
